import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import local_remove from '@dfeidao/atom-web/local/remove';
import local_set from '@dfeidao/atom-web/local/set';
import _hide from '@dfeidao/atom-web/ui/hide';
import set_nodes_cls from '@dfeidao/atom-web/ui/set-nodes-cls';
// 新增弹窗关闭
export default async function a002(fd: IFeidaoAiBrowserComponent) {
	_hide(fd.data.node);
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="name_key"]').value = "";
	const clalist = fd.data.node.querySelectorAll<HTMLDivElement>('[data-feidao-actions="click:a006"]');
	local_remove(fd, "client_type");
	local_remove(fd, "sort");
	local_remove(fd, "name_key");
	local_remove(fd, "pub_package");
	local_set(fd, 'page_no', 1); // 设置页码
	set_nodes_cls(Array.from(clalist), 'bg-c', false);
}
